<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>消息记录 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"} 
<div class="uright">
<div class="mwz">
<li class="cur"><a>消息记录</a></li>
<li><a href='/member/lists/login/'>登录记录</a></li>
<li><a href='/member/lists/bad/'>不良记录</a></li>
<li><a href='/member/lists/promotion/'>推广记录</a></li>
</div>
<div class="msl">
<a href='/member/lists/message/' {if $list.state==0}class="cur"{/if}>未读消息</a>  <a href='/member/lists/message/state/1' {if $list.state==1}class="cur"{/if}>已读消息</a>
{if $list.state==0}<span class="total">未读消息 <font color="#ff6600" class='message_num_0'>{$total}</font> 条 </span>{/if}
{if $list.state==1}<span class="total">已读消息 <font color="#ff6600" class='message_num_1'>{$total}</font> 条 </span>{/if}
 </div>
<div class="mso sell">
<ul style='width:94%;text-align: right;'>
{if $list.state==0}<div class="layui-input-inline message_cz" style='width:49%;text-align: left;'  >
<a onclick="message_operate(this)" action='read'>选中设为已读</a> | <a onclick="message_operate(this,0)"  action='read'>全部设为已读</a></div>
{/if}
{if $list.state==1}
<div class="layui-input-inline message_cz" style='width:49%;text-align: left;'  >
<a onclick="message_operate(this)" action='del'>删除选中</a> | <a onclick="message_operate(this,0)" action='del'>删除全部</a></div>
{/if}
 <div class="layui-input-inline Search-box" style='width:50%;'  >

<div class="layui-inline">
 <label class="layui-form-label" style='width:auto;padding:6px 10px 6px 15px;'>关键词</label> <div class="layui-input-inline">
<input name="key" id='key' class="layui-input Search-inp" placeholder="请输入标题关键词"  style='width:120px;' value='{$list.key}' maxlength="20" type="text"/> </div>
</div>

 <div class="layui-input-inline"   style='width:60px;'  >
<a class="layui-btn layui-btn-danger Search-btn" style='margin-left:10px;' onclick="str=document.getElementById('key').value;window.location.href=(str.trim()!=''?'/member/lists/message/state/{$list.state}/key/'+str.trim():'/member/lists/message');"/>搜索</a>
</div>
</div>

</ul>
</div>
<form name="" action="">
<table class="tablelist">
<thead>
  <tr>
	  		<td width="6%"><input type="checkbox"  name="xuan"></td>
            <td width="12%"><select  onchange="window.location=this.value;" style="width:80px;" name="">
			<option value="/member/lists/message/">全部消息</option>
			{foreach($list.data as $v)}
			<option value='/member/lists/message{if $list.state==1}/state/1{/if}/sorts/{$v.name}' {if $v.name==$list.sorts}selected{/if}>{$v.name}</option>
			{/foreach}
			</select>
			</td>
			<td width="62%">标题</td>
            <td width="20%">时间</td>
        </tr>
    </thead>
<tbody class="MemberMessageList">
{foreach($data as $v)}<tr>
<td ><input type="checkbox" value="{$v.id}" name="C1"></td>
<td>{$v.type}</td>
<td><a href='{$v.url}' data_id='{$v.id}' target='_blank' {if $v.zt==1}style="color:#999"{/if}>{$v.tit}</a></td>
<td>{:ifsj($v.sj)}</td>
</tr>
</tr>{/foreach}
  </tbody>
</table>
<input type="hidden" name="batch" value="message">
</form>
 
 </div>
 </div>
{include file="bottom"}</body>
</html>